package coalescent.cef.command.listener;

import cef.command.listener.CommandOutputListener;
import cef.command.listener.DescribeObjectPrintWriter;
import coalescent.data.K69Data;

import java.io.PrintWriter;

/**
 * @author Susanta Tewari
 * @version version
 * @history Created on 2/10/13
 * @since 1.4.0
 */
public class DescribeObjectPrintWriters {

    /**
     * @version version
     * @since 1.4.0
     * @history Created on 02/10/2013
     * @author Susanta Tewari
     */
    public static class K69DataPW extends DescribeObjectPrintWriter<K69Data> {

        @Override
        public void describe(final PrintWriter printWriter, final K69Data object) {

            printWriter.println(object);
            printWriter.flush();
        }

        @Override
        public CommandOutputListener newInstance() {
            return new K69DataPW();
        }
    }
}
